#!/bin/sh

set -e

git clone https://github.com/libharu/libharu.git
cd libharu
git checkout 8dbcfe4
git apply --verbose ../0001-reworked-code.patch
cmake . -DBUILD_SHARED_LIBS=OFF && make -j3
